<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
         /* 清除默认样式 */
    *{
        padding:0px;
        margin: 0px;
        /* 去点 */
        list-style: none;
    }
    ul{
        width: 300px;
        margin: 0 auto;
    }
    li{
        height: 45px;
         line-height: 45px;  /*让文字在竖直方向居中 行高的值等于高度 只针对一行 */
         text-align: center;  /*让文字在水平方向居中 */
         border-bottom:1px dashed grey ;
    }
    .txt_red{
        color: red;
    }
    .txt_blue{
        color: blue;
    }
    .txt_purple{
        color: purple;
    }
    .bg_pink{
        background-color: pink;
    }
    .font{
        font-size: 25px;
        font-weight: 500;
        font-family: '华文彩云';
    }
    </style>
    
</head>
<body>
    <ul>
        <li class="txt_red bg_pink">让你逢凶化吉1</li>
        <li class="txt_blue bg_pink font">让你逢凶化吉2</li>
        <li class="txt_red bg_pink">让你逢凶化吉3</li>
        <li class="txt_red bg_pink">让你逢凶化吉4</li>
        <li class="txt_blue bg_pink font">让你逢凶化吉5</li>
        <li class="txt_red bg_pink">让你逢凶化吉6</li>
        <li class="txt_purple bg_pink">让你逢凶化吉7</li>
        <li class="txt_red bg_pink font">让你逢凶化吉8</li>
    </ul>
</body>
</html>